self.onmessage = function (e) {
    var messages = e.data.url;  // e.data为{message: 'hello worker!'}
    var workerResult = {};
    var RetCount = 6;

    workerResult.url = e.data.url;
    // do something
    //workerResult.abc = 'sfsdf'
    var xhr1 = new XMLHttpRequest();
    xhr1.open('GET', messages + '.ver', true);
    
    xhr1.responseType = 'arraybuffer';
    xhr1.send(null);
    workerResult.buffer1 = xhr1.response;

    var xhr2 = new XMLHttpRequest();
    xhr2.open('GET',  messages + '.color', true);
    xhr2.responseType = 'arraybuffer';
    xhr2.send(null);
    workerResult.buffer2 = xhr2.response;

    var xhr3 = new XMLHttpRequest();
    xhr3.open('GET', messages + '.index', true);
    xhr3.responseType = 'arraybuffer';
    xhr3.send(null);
    workerResult.buffer3 = xhr3.response;

    var xhr4 = new XMLHttpRequest();
    xhr4.open('GET', messages + '.normal', true);
    xhr4.responseType = 'arraybuffer';
    xhr4.send(null);
    workerResult.buffer4 = xhr4.response;

    var xhr5 = new XMLHttpRequest();
    xhr5.open('GET', messages + '.icolor', true);
    xhr5.responseType = 'arraybuffer';
    xhr5.send(null);
    workerResult.buffer5 = xhr5.response;

    var xhr6 = new XMLHttpRequest();
    xhr6.open('GET', messages + '.info', true);
    xhr6.responseType = 'arraybuffer';
    xhr6.send(null);
    workerResult.buffer6 = xhr6.response;

    xhr1.onload = function (e) {
        if (this.status == 200) {
            workerResult.buffer1 = xhr1.response;
            RetCount--;
            if(RetCount == 0) postMessage(workerResult);
        }
    };

    xhr2.onload = function (e) {
        if (this.status == 200) {
            workerResult.buffer2 = xhr2.response;
            RetCount--;
            if(RetCount == 0) postMessage(workerResult);
        }
    };

    xhr3.onload = function (e) {
        if (this.status == 200) {
            workerResult.buffer3 = xhr3.response;
            RetCount--;
            if(RetCount == 0) postMessage(workerResult);
        }
    };

    xhr4.onload = function (e) {
        if (this.status == 200) {
            workerResult.buffer4 = xhr4.response;
            RetCount--;
            if(RetCount == 0) postMessage(workerResult);
        }
    };

    xhr5.onload = function (e) {
        if (this.status == 200) {
            workerResult.buffer5 = xhr5.response;
            RetCount--;
            if(RetCount == 0) postMessage(workerResult);
        }
    };

    xhr6.onload = function (e) {
        if (this.status == 200) {
            workerResult.buffer6 = xhr6.response;
            RetCount--;
            if(RetCount == 0) postMessage(workerResult);
        }
    };
   

    //postMessage(workerResult);
}